package com.bootdo.dietary.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.dietary.dao.RecipeDao;
import com.bootdo.dietary.domain.RecipeDO;
import com.bootdo.dietary.service.RecipeService;



@Service
public class RecipeServiceImpl implements RecipeService {
	@Autowired
	private RecipeDao recipeDao;
	
	@Override
	public RecipeDO get(Long id){
		return recipeDao.get(id);
	}
	
	@Override
	public List<RecipeDO> list(Map<String, Object> map){
		return recipeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return recipeDao.count(map);
	}
	
	@Override
	public int save(RecipeDO recipe){
		return recipeDao.save(recipe);
	}
	
	@Override
	public int update(RecipeDO recipe){
		return recipeDao.update(recipe);
	}
	
	@Override
	public int remove(Long id){
		return recipeDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return recipeDao.batchRemove(ids);
	}
	
}
